package edu.lingnan.rili.utils;

import lombok.Data;

import java.io.Serializable;

/**
 * 不要用int类型,要用包装类型,可防止空指针
 * @Author 陈世杰
 * @Date 2022/1/16 10:55
 * @Version 1.0
 */
@Data
public class Result<T> implements Serializable {

    private static final long serialVersionUID = 2759685279968961010L;
    private Integer resultCode;
    private String message;
    private T data;

    public Result() {
    }

    public Result(Integer resultCode, String message) {
        this.resultCode = resultCode;
        this.message = message;
    }
}
